how do you read from system.out in Java [closed]

Posted by Dan on Programmers See other posts from Programmers or by Dan
Published on 2011-11-23T23:32:32Z Indexed on 2011/11/24 2:20 UTC
Read the original article Hit count: 359

I'm trying to create a word scramble game and so far I have taken a vector of randomly assorted strings that contains both words and hints and split them into two vectors. I have randomly scrambled the word and set this all up in text boxes.

Right now I'm stuck because I have a text box that takes input but I'm not sure how to read that in? I want the user to type the unscrambled word into the text box and have it calculate as correct and move on to the next word immediately.

I also don't know how to get the keys working. I want the "?" character to be the hint button that shows the hint. At the moment the hint box works if I type the question mark in using the System.in but it doesn't work if I type it directly in to the text box.

The characters are showing up in the text box but nothing is working after that.

© Programmers or respective owner

Related posts about java

Related posts about game-development